{extend name='main'}
{block name="content"}
<div class="think-box-shadow">
    <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
        <div class="layui-card-body think-box-shadow padding-left-40">
           
            <div class="layui-form-item">
                <label class="layui-form-label abel-required-prev ">自定义内容</label>
                <!-- <span class="label-required-prev color-green">协议内容</span> -->
                <div class="layui-input-block">
                    <textarea name="content">{$vo.content|default=''|raw}</textarea>
                </div>
            </div>
            <div class="layui-form-item text-center">
                {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
                <button class="layui-btn" type='submit'>保存数据</button>
                <button class="layui-btn layui-btn-danger" type='button' onclick="window.history.back()">返回</button>
            </div>
            
        </div>
       
        
        <script>window.form.render();</script>
    </form>
</div>
<script>
    window.form.render();
    require(['ckeditor', 'angular'], function () {
        window.createEditor('[name="content"]', {height: 700});
        var app = angular.module("GoodsForm", []).run(callback);
        angular.bootstrap(document.getElementById(app.name), [app.name]);  
      
    })
    		
</script>
{/block}


